<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>警示框</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<h2>默认警示框</h2>
<div class="alert alert-success" role="alert">恭喜您操作成功！</div>
<div class="alert alert-info" role="alert">请输入正确的密码</div>
<div class="alert alert-warning" role="alert">您已操作失败两次，还有最后一次机会</div>
<div class="alert alert-danger" role="alert">对不起，您输入的密码有误</div> 
<h2>可关闭的警示框</h2>
<div class="alert alert-success alert-dismissable" role="alert">
    <button class="close" type="button" data-dismiss="alert">&times;</button>
    恭喜您操作成功！
</div>
<div class="alert alert-info alert-dismissable" role="alert">
	<button class="close" type="button" data-dismiss="alert">&times;</button>
	请输入正确的密码
</div>
<div class="alert alert-warning alert-dismissable" role="alert">
	<button class="close" type="button" data-dismiss="alert">&times;</button>
	您已操作失败两次，还有最后一次机会
</div>
<div class="alert alert-danger alert-dismissable" role="alert">
	<button class="close" type="button" data-dismiss="alert">&times;</button>
	对不起，您输入的密码有误
</div>
<h2>警示框的链接</h2>
<div class="alert alert-success" role="alert">
    <strong>Well done!</strong> 
    You successfully read 
	<a href="#" class="alert-link">this important alert message</a>
	.
</div>
<div class="alert alert-info" role="alert">
	<strong>Heads up!</strong>
	 This 
	 <a href="#" class="alert-link">alert needs your attention</a>
	 , but it's not super important.
</div>
<div class="alert alert-warning" role="alert">
	<strong>Warning!</strong>
	 Better check yourself, you're 
	 <a href="#" class="alert-link">not looking too good</a>
	 .
</div>
<div class="alert alert-danger" role="alert">
	<strong>Oh snap!</strong>
	<a href="#" class="alert-link">Change a few things up</a>
	 and try submitting again.
</div>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
</body>
</html>